package com.qf.swagger2204.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.swagger2204.dao.VoteDao;
import com.qf.swagger2204.entity.Vote;
import com.qf.swagger2204.service.VoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VoteServiceImpl extends ServiceImpl<VoteDao, Vote> implements VoteService {
    @Autowired
    VoteDao voteDao;
    @Override
    public List<Vote> select(String phone) {
        return voteDao.selectByPhone(phone);
    }

    @Override
    public List<Vote> selectAll() {
        return voteDao.selectAll();
    }
}
